<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改智能AI识别模型版本管理')" />
    <th:block th:include="include :: datetimepicker-css" />
    <style>
        select {
            border: 1px solid #ddd;
            border-radius: 4px;
            background: transparent;
            outline: none;
            height: 30px;
            width: 200px;
        }
    </style>

</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-VersionService-edit" th:object="${aiIdentifyModelVersionT}">
            <input name="versionId" th:field="*{versionId}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">模型编码：</label>
                <div class="col-sm-8">
                    <input name="modelId" th:field="*{modelId}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">模型名称</label>
                <div class="col-sm-8">
                    <select  th:field="*{modelName}" name="modelName">
                        <option value="" placeholder="--请选择模型名称--"  >--请选择模型名称--</option>
                        <option value="人和安全帽">人和安全帽</option>
                        <option value="人员装备">人员装备</option>
                        <option value="主煤流检测">主煤流检测</option>
                        <option value="人和车检测">人和车检测</option>
                        <option value="煤流量">煤流量</option>
                    </select>
                </div>
            </div>

            <div class="form-group">

                <label class="col-sm-3 control-label">模型类别</label>
                <div class="col-sm-8">
                    <select  th:field="*{modelKind}" name="modeKind">
                        <option value="" placeholder="--请选择模型名称--"  >--请选择模型名称--</option>
                        <option value="目标检测">目标检测</option>
                        <option value="图像分类">图像分类</option>
                    </select>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">老版本号：</label>
                <div class="col-sm-8">
                    <input name="oldVersion" th:field="*{oldVersion}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">新版本号：</label>
                <div class="col-sm-8">
                    <input name="publishVersion" th:field="*{publishVersion}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">模型备注：</label>
                <div class="col-sm-8">
                    <textarea name="versionRemark" class="form-control">[[*{versionRemark}]]</textarea>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var prefix = ctx + "AI/VersionService";
        $("#form-VersionService-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-VersionService-edit').serialize());
            }
        }

        $("input[name='publishTime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='trainTime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>